import req from '@/http/http'
import config from '@/config/index'

// zhpq接口
const ZHPQ_SERVER = config.serverUrl()

export const getServer = _ => {
  return ZHPQ_SERVER
}
export const getCaseYearData = data => {
  let path = ZHPQ_SERVER + '/case/statistics/count-of-month'
  return req.get(path, data)
}
export const getMoneyYearData = data => {
  let path = ZHPQ_SERVER + '/case/statistics/amount-of-month'
  return req.get(path, data)
}
export const getUserYearData = data => {
  let path = ZHPQ_SERVER + '/case/statistics/amount-of-user'
  return req.get(path, data)
}
